<template>
  <div>孙组件---{{ a }}</div>
  <el-button @click="changeA">孙组件该值</el-button>
</template>
<script setup>
import { inject } from "vue";

const { a, changeA } = inject("msg");
</script>
<style lang="scss" scoped></style>
